//
//  FFWebViewController.h
//  Components
//
//  Created by IT.Bear on 16-8-25.
//  Copyright (c) 2016年 FashionFinger. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>

@interface FFWebViewController : UIViewController

@property (nonatomic, strong) NSURL *url;
@property (nonatomic, strong, readonly) WKWebView *webView;

- (id)initWithHTMLString:(NSString *)htmlString;
- (id)initWithURL:(NSURL *)url;
- (id)initWithURL:(NSURL *)url htmlString:(NSString *)htmlString;
- (void)loadURL:(NSURL *)url;
- (NSMutableURLRequest *)buildRequest;
- (NSDictionary *)pasingWithString:(NSString *)string;
- (BOOL)parseURLString:(NSString *)url;
//是否处理https
- (BOOL)handleHttps;
- (id)initWithLoadData:(NSData *)data MIMEType:(NSString *)type characterEncodingName:(NSString *)encodingName baseUrl:(NSURL *)url;
- (void)progressFinish;
- (void)deleteWebCache;
- (void)tokenToH5;

//登录
- (void)goLogin;

@end
